package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 修改用户银行卡信息
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class UpdateBankInfoApi implements IRequestHost, IRequestApi, IRequestType {

    private Integer id;
    private String back;
    private String userName;
    private String cardNo;
    private String identityCardNumber;
    private String bankId;
    private String cardType;
    private String isDefault;

    @Override
    public String getApi() {
        return "user/editBackCard";
    }

    @Override
    public String getHost() {
        return MTLConstants.WE_CHAT_URL;
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public UpdateBankInfoApi setId(Integer id) {
        this.id = id;
        return this;
    }

    public UpdateBankInfoApi setBack(String back) {
        this.back = back;
        return this;
    }

    public UpdateBankInfoApi setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public UpdateBankInfoApi setCardNo(String cardNo) {
        this.cardNo = cardNo;
        return this;
    }

    public UpdateBankInfoApi setIdentityCardNumber(String identityCardNumber) {
        this.identityCardNumber = identityCardNumber;
        return this;
    }

    public UpdateBankInfoApi setBankId(String bankId) {
        this.bankId = bankId;
        return this;
    }

    public UpdateBankInfoApi setCardType(String cardType) {
        this.cardType = cardType;
        return this;
    }

    public UpdateBankInfoApi setIsDefault(String isDefault) {
        this.isDefault = isDefault;
        return this;
    }
}
